//
//  BCFindPasswordResetRequest.m
//  GSBlockChain
//
//  Created by guoshikeji_a on 2018/11/30.
//  Copyright © 2018 guoshikeji. All rights reserved.
//

#import "BCFindPasswordResetRequest.h"

@implementation BCFindPasswordResetRequest
- (HttpRequestMethod)requestMethod {
    return POST;
}
- (NSString *)service {
    return @"App.Register.Backpassword";
}

- (NSString *)device_type {
    return @"2";
}

- (NSString *)password {
    return [_password passwordDoubleMd5_32];
}

- (BOOL)success:(NSURLSessionDataTask *)task data:(id)obj {
    BOOL success = [super success:task data:obj];
    if (success) {
        BCFindPasswordResetResponse *resp = [BCFindPasswordResetResponse yy_modelWithJSON:obj];
        if (self.requestSuccessed) {
            self.requestSuccessed(resp, nil);
        }
    }
    return success;
}
@end
